// eslint-disable-next-line no-undef
export default defineAppConfig({
  pages: [
    "pages/index/index",
    "pages/my/index",
    "pages/scan/index",
    "pages/login/index",
  ],
  lazyCodeLoading: "requiredComponents",
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  tabBar: {
    custom: false,// true则自定义tabbar，src目录下新建custom-tab-bar文件夹，里面放自定义的tabbar组件
    color: "#888888",
    selectedColor: "#3C6DF0",
    list: [
      {
        iconPath: "resource/tabbar/scan.png",
        selectedIconPath: "resource/tabbar/scan.png",
        pagePath: "pages/index/index",
        text: "首页",
      },
      {
        iconPath: "resource/tabbar/scan.png",
        selectedIconPath: "resource/tabbar/scan.png",
        pagePath: "pages/scan/index",
        text: "扫一扫",
      },
      {
        iconPath: "resource/tabbar/scan.png",
        selectedIconPath: "resource/tabbar/scan.png",
        pagePath: "pages/my/index",
        text: "我的",
      },
    ],
  },
});
